<script setup lang="ts">
defineProps<{ msg: string }>()

const send = () => {
  console.log(window.$wujie.props)
}

const emit = () => {
  window.$wujie.bus.$emit('vue3', '我是子应用')
}
</script>

<template>
  <h1>{{ msg }}</h1>

  <div class="card">
    <button type="button" @click="send">无界获取父组件参数</button>
    <button type="button" @click="emit">无界发送给父组件参数</button>
  </div>

  <p>
    Learn more about IDE Support for Vue in the
    <a
        href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
        target="_blank"
    >Vue Docs Scaling up Guide</a
    >.
  </p>
</template>
